package com.czxy.demo04;

import java.io.Serializable;

/**
 * Created by hp on 2020/2/26.
 */
public class Phone implements Serializable {
    private String owner;
    private String brand;
    private int price;

    @Override
    public String toString() {
        return "Phone{" +
                "owner='" + owner + '\'' +
                ", brand='" + brand + '\'' +
                ", price=" + price +
                '}';
    }

    public Phone(String owner, String brand, int price) {
        this.owner = owner;
        this.brand = brand;
        this.price = price;
    }

    public Phone() {
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
}
